<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="h-ui-font/iconfont.min.css" />
		<link rel="stylesheet" type="text/css" href="css/jquery-weui.min.css" />
		<link rel="stylesheet" type="text/css" href="css/weui.min.css" />
		<script src="js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jquery-weui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/vue(1).js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			body {
				width: 100%;
				margin: 0px auto;
				min-width: 320px;
				max-width: 640px;
			}
			
			.top {
				width: 100%;
				height: 50px;
				min-width: 320px;
				max-width: 640px;
				line-height: 50px;
				color: white;
				font-size: 18px;
				text-indent: 5px;
				position: fixed;
				overflow: hidden;
				background-color: #0F88EB;
			}
			
			.top a {
				color: white;
				display: inline-block;
				margin-right: 5px;
			}
			
			.top a:last-child {
				float: right;
				font-size: 24px;
				font-weight: bold;
				margin-right: 10px;
			}
			
			.contents {
				width: 100%;
				padding-top: 50px;
				padding-bottom: 40px;
				overflow: auto;
				/*border: 1px solid red;*/
			}
			
			.weui-tabbar {
				min-width: 320px;
				max-width: 640px;
				height: 40px;
				position: fixed;
			}
			
			.weui-tabbar__icon {
				margin-top: -4px;
			}
			
			.active {
				color: rgba(0, 0, 255, 0.8) !important;
			}
			
			.icon {
				width: 80px;
				height: 80px;
				overflow: hidden;
				border-radius: 40px;
				margin: 20px auto;
				border: 1px solid;
			}
			
			.icon img {
				width: 100%;
				height: 100%;
			}
			.weui-cell__hd{
				width: 60px;
				text-indent: 20px;
				font-size: 20px;
			}
		</style>
	</head>

	<body>
		<div class="top">
			<a href="more.html" class="Hui-iconfont Hui-iconfont-slider-left"></a>编辑个人信息
			<a href="javascript:;" v-on:click="tijiao()" class="Hui-iconfont Hui-iconfont-xuanze"></a>
		</div>
		<div class="contents">
			<div class="icon"><img src="img/3510104ee040833d1dc97e0d8c5bb26e.jpeg" /></div>
			<div class="item">
				<div class="weui-cell">
					<div class="weui-cell__hd"><label class="weui-label Hui-iconfont Hui-iconfont-user2"></label></div>
					<div class="weui-cell__bd">
						<input class="weui-input" type="text" v-model="nicheng" placeholder="请输入昵称">
					</div>
				</div>
				<div class="weui-cell">
					<div class="weui-cell__hd"><label class="weui-label Hui-iconfont Hui-iconfont-feedback2"></label></div>
					<div class="weui-cell__bd">
						<input class="weui-input" type="text" v-model="one" placeholder="一句话描述">
					</div>
				</div>
				<div class="weui-cell">
					<div class="weui-cell__hd"><label class="weui-label Hui-iconfont Hui-iconfont-tel"></label></div>
					<div class="weui-cell__bd">
						<input class="weui-input" type="number" v-model="phone" placeholder="手机号">
					</div>
				</div>
				<div class="weui-cell">
					<div class="weui-cell__hd"><label class="weui-label Hui-iconfont Hui-iconfont-xiaoxi"></label></div>
					<div class="weui-cell__bd">
						<input class="weui-input" type="email" v-model="email" placeholder="邮箱">
					</div>
				</div>
			</div>
		</div>

		<div class="weui-tabbar">
			<a href="index.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<i class="Hui-iconfont Hui-iconfont-canshu"></i>
				</div>
			</a>
			<a href="find.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<i class="Hui-iconfont Hui-iconfont-yanjing"></i>
				</div>
			</a>
			<a href="chart.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<i class="Hui-iconfont Hui-iconfont-xiaoxi1"></i>
				</div>
			</a>
			<a href="more.html" class="weui-tabbar__item">
				<div class="weui-tabbar__icon">
					<i class="Hui-iconfont Hui-iconfont-menu active"></i>
				</div>
			</a>
		</div>
		<script type="text/javascript">
			var ss = sessionStorage.getItem("token");
			var dd = sessionStorage.getItem("appid");
			var vue = new Vue({
				el: "body",
				data: {
					json1: [],
					nicheng:"",
					one:"",
					phone:"",
					email:""

				},
				methods: {
					tijiao: function() {
						var nicheng=vue.nicheng;
						var one1=vue.one;
						var phone=vue.phone;
						var email=vue.email;
						
						$.ajax({
							type: "get",
							url: "http://v2.mashupcloud.cn/SQL/upda_user/",
							data: {
								appid: dd,
								token: ss,
								name: 'upda_user',
								_v1: nicheng,
								_v2: email,
								_v3: one1,
								_v4: phone,
								_v5: sessionStorage.getItem("username")
							},
							success: function(json) {
								console.log(json)
								alert("修改成功！")
							}
						});
					}
				}
			});
			
		</script>
	</body>

</html>